<?php

namespace app\common\model\mysql;

use think\Model;

class Ticket extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'tk_ticket';

    /**
     * 根据where条件获取水票数据
     * @param array $where
     * @param string $field
     * @return Send|array|mixed|Model|null
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function getTicketFind(array $where = [], string $field = "*"){
        $result = $this->where($where)->field($field)->find();
        return $result;
    }
}
